package cn.com.czpb.client.module.subscribe.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import cn.com.czpb.client.R;
import cn.com.czpb.client.model.video.VideoItemBean;

import java.util.List;

/**
 * Created by 猪猪侠 on 2017/7/20.
 */

public class SubscribeRecycleAdapter extends BaseQuickAdapter<VideoItemBean,BaseViewHolder> {

    private List<VideoItemBean> list;
    public SubscribeRecycleAdapter(List<VideoItemBean> list){
        super(R.layout.recycle_daren_main,list);
    }
    @Override
    protected void convert(BaseViewHolder helper, VideoItemBean item) {
        Glide.with(mContext).load(item.getMainpic()).crossFade().placeholder(R.drawable.default_bg).into((ImageView) helper.getView(R.id.img_bg_id));
        helper.setText(R.id.title,item.getTitle())
        .addOnClickListener(R.id.rl_id)
        .addOnClickListener(R.id.video_info_rl);

    }












}
